package com.lxz.bookmanager.service;

import com.lxz.bookmanager.entity.Book;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface BookService {
    //获取所有书籍信息
    List<Book> getAllBook();
    //
    Book getBookById(String id);

    int selectBookCount(String id);

    void updateBook(Book book);

    void deleteBook(long id);

    void addBook(Book book);

    List<Book> searchBook(String keyword);
}
